<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>句容机关网站管理后台</title>
        <link rel="stylesheet" href="../style/reset.css" type="text/css" media="screen" />
        <link rel="stylesheet" href="../style/style.css" type="text/css" media="screen" />
        <link rel="stylesheet" href="../style/fixed.css" type="text/css" />
        <link rel="stylesheet" href="../style/msgbox.css" type="text/css" />
        <link rel="stylesheet" href="../js-plugin/jquery-ui/jquery-ui.css" type="text/css" />
        <script type="text/javascript" src="../js-plugin/jquery-1.6.min.js">
        </script>
        <script type="text/javascript" src="../js-plugin/jquery-ui/jquery-ui.min.js">
        </script>
        <script type="text/javascript" src="../js-plugin/simpla.jquery.configuration.js">
        </script>
        <script type="text/javascript" src="../js-plugin/jquery.query-2.1.7.js">
        </script>
        <script type="text/javascript" src="../js-plugin/jquery.template.js">
        </script>
        <script src="../js-plugin/jquery.easy-confirm-dialog.js">
        </script>
        <script src="../js-plugin/tpl.js">
        </script>
        <script src="../js/master/ContributeManage.js">
        </script>
    </head>
    <body>
        <div class="loadingbox clearfix">
        </div>
        <div id="main-content">
            <div class="content-box">
                <div class="content-box-header">
                    <h3>用户投稿管理</h3>
					<div class="bulk-actions align-left">
                        <select name="columnid" id="columnid">
                            <option value="">查看所有投稿</option>
                            <#list columnlist as column>
								<option value="${column.id?c}"><#if column.type == 0>栏目：<#else>专题：</#if>${column.columnname}</option>
                            </#list>
                        </select>
                    </div>
                </div>
                <div class="content-box-content">
                    <div class="tab-content default-tab">
                        <div class="notification attention png_bg" style="display:none">
                            <a href="#" class="close"><img src="/images/manage/icons/cross_grey_small.png" title="Close this notification" alt="close" /></a>
                            <div id="errormsg">错误信息</div>
                        </div>
                        <table class="datalist">
                            <thead>
                                <tr>
                                    <th>标题</th>
									<th width="90">投稿人</th>
									<th width="90">投稿时间</th>
                                    <th width="80">状态</th>
                                    <th width="80">得分</th>
                                    <th width="80">审核人</th>
                                    <th width="90">审核时间</th>
                                    <th width="60">推荐</th>
                                    <th width="130">管理</th>
                                </tr>
                            </thead>
                            <tbody>
                                <#list manager.ContributeList(20) as list>
                                <tr>
                                    <td>${list.title}</td>
									<td>${list.author}</td>
									<td>${list.postdate?date}</td>
									<td><#if list.status == 2>审核通过<#elseif list.status == 1>审核不通过<#else>未审核</#if></td>
									<td><#if list.score==0>未评分<#else>${list.score?c}分</#if></td>
                                    <td>${list.auditor}</td>
                                    <td>${list.auditordate?date}</td>
                                    <td>
                                        <input id="topic_${list.id?c}" name="topic" type="checkbox" value="${list.id?c}"<#if list.topic == 1>checked="true"</#if> />
                                        <label for="topic_${list.id?c}">置 顶</label>
                                    </td>
                                    <td>
                                        <a class="button" href="ContributeManageEdit?id=${list.id?c}">编辑</a>
                                        <a class="button deleteBtn" href="${list.id?c}">删除</a>
                                    </td>
                                </tr>
                                </#list>
                            </tbody>
                            <tfoot>
                                <tr>
                                    <td colspan="9">
                                        <div class="pagination">
                                            ${manager.getPaginator()} 
                                        </div>
                                        <div class="clear">
                                        </div>
                                    </td>
                                </tr>
                            </tfoot>
                        </table>
                    </div>
                </div>
            </div>
        </div>
    </body>
</html>
